//
//  MainTableViewCell.m
//  F50
//
//  Created by 郝 巍 on 15/5/8.
//  Copyright (c) 2015年 ZACK. All rights reserved.
//

#import "MainTableViewCell.h"

@implementation MainTableViewCell

- (void)awakeFromNib {
    // Initialization code
    
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = RGB(35, 91, 133);
        self.chanceLab = [[UILabel alloc]initWithFrame:CGRectMake(40, 10, 200, 20)];
        self.chanceLab.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.chanceLab];
        
        self.approveLab = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH - 80, 10, 50, 20)];
        self.approveLab.textColor = [UIColor whiteColor];
        self.approveLab.hidden = YES;
        self.approveLab.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.approveLab];
        
        
        self.topImage = [[UIImageView alloc]initWithFrame:CGRectMake(10, 8, 24, 24)];
        [self.contentView addSubview:self.topImage];
        
        UIImageView *view = [[UIImageView alloc]initWithFrame:CGRectMake(WIDTH - 30, 10, 15, 20)];
        view.image = [UIImage imageNamed:@"go_light"];
         [self.contentView addSubview:view];
        UILabel *line = [[UILabel alloc]initWithFrame:CGRectMake(0, 43, WIDTH, 1)];
        line.backgroundColor = RGB(112, 159, 204);
        [self.contentView addSubview:line];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
